//
//  UIView+Extension.m
//  GameSDK
//
//  Created by Johnny on 2017/8/10.
//  Copyright © 2017年 Johnny. All rights reserved.
//

#import "UIView+Extension.h"

@implementation UIView (Extension)
- (UIImage *)getImage {
    UIGraphicsBeginImageContextWithOptions(self.bounds.size, YES, self.layer.contentsScale);
    [self.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage *image=UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    return image;
}
@end
